@extends('home.layouts._master')
@push('css')
    <link rel="stylesheet" type="text/css" href="{{asset('org/home/css')}}/ziy.css">
@endpush
@section('content')
    <div class="nSearchWarp">
        <div class="hot-tj">
            <span class="icon_tj">热卖<br>推荐</span>
            <ul class="hot-list clearfix">
                @foreach($commendGoods as $good)
                    <li class="item asynPriceBox">
                        <p class="pic">
                            <a target="_blank" href="{{route('home.content',$good)}}"><img src="{{$good['picture'][0]}}" alt=""></a>
                        </p>
                        <p class="name"><a href="{{route('home.content',$good)}}" title=" {{$good['title']}}">  {{$good['title']}}</a></p>
                        <p class="price asynPrice" >¥ {{$good['price']}}</p>
                        <p class="btn"><a class="buy" href="#" >立即抢购</a></p>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>

    <!--!!!-->
    <div class="lujing_ziy">
        <a href="javascript:;">搜索结果</a>
    </div>
    <div class="shangp_lieb_jvz">
        <script type="text/javascript">
            function xians()
            {
                var ddd=document.getElementById('yingc');
                if(ddd.style.display=='block')
                {
                    ddd.style.display='none';
                }
                else
                {
                    ddd.style.display='block';
                }
            }
        </script>
        <!--测试****************************************-->

        <!--测试****************************************-->
        <!--列表-->
        {{--@dd($collects);--}}
        <div class="shangp_lieb_yi">

            <div class="shnagp_list_v1">
                <ul>
                    @foreach($goods as $good)
                        <li>
                            <div class="lieb_neir_kuang">
                                <div class="lieb_img">
                                    <a href="{{route('home.content',$good)}}"><img src="{{$good['picture'][0]}}" style="width: 276px;height: 209px;"></a>
                                    {{--<div class="p_focus"><a class="J_focus" href="{{route('home.collect.make',$good)}}"><i></i>已收藏</a></div>--}}
                                    <div class="p_focus"><a class="J_focus" href="{{route('home.collect.make',$good)}}"><i></i>收藏</a></div>
                                </div>
                                <div class="lieb_text">
                                    <div class="p_price">
                                        <strong class="J_price"><em>¥</em><i>{{$good['price']}}</i></strong>
                                    </div>
                                </div>
                                <div class="shangp_biaot_"><a href="{{route('home.content',$good)}}">{{$good['title']}}</a></div>
                            </div>
                        </li>
                    @endforeach
                </ul>
                {{--<div class="page clearfix">--}}
                    {{--{{$goods->links()}}--}}
                {{--</div>--}}
            </div>
        </div>
    </div>

    <!--列表一结束-->
    <!--猜你喜欢-->
    <div class="cain_xih">
        <div class="mt">
            <h2 class="title">猜你喜欢</h2>
        </div>
        <ul class="cain_xihuan_neir">
            @foreach($likeGoods as $good)
                <li>
                    <div class="item_pic"><a href="{{route('home.content',$good)}}"><img src="{{$good['picture'][0]}}"></a></div>
                    <div class="cain_xih_biaot"><a href="{{route('home.content',$good)}}">{{$good['title']}}</a></div>
                    <div class="cain_xih_jiaq"><p>￥{{$good['price']}}</p></div>
                </li>
            @endforeach
        </ul>
    </div>
@endsection


